package liwen.zhao;

import liwen.zhao.common.jd.utils.VerifyCode;
import liwen.zhao.common.jd.vo.SysResult;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("liwen.zhao.mappers")
@EnableEurekaClient
public class JDUserMicroserviceStarter {
    public static void main(String[] args) {
        SpringApplication.run(JDUserMicroserviceStarter.class,args);
    }
    
    @Bean
    public VerifyCode initVerifyCode(){
        return new VerifyCode();
    }
    
    @Bean
    public SysResult initSysResult(){
        return SysResult.build(500, "服务器异常", null);
    }
}
